package yh.design.abstracts.ref;

/**
 * 喜鹊实现类
 * @author: zyh
 * @date: 2025/3/24 15:38
 **/
public class Cyana extends Bird implements Flyable{


    //栖息地
    private String habits;

    public Cyana(String name, String habits) {
        super(name);
        this.habits = habits;
    }

    @Override
    public void makeSound() {
        //自定义事项
        System.out.println("叽叽喳喳");

    }

    @Override
    public void fly() {
        System.out.println("在天空飞翔");
    }
}
